public class Dispatcher {

	public Object type(String s) {
		java.util.StringTokenizer objectString = new java.util.StringTokenizer(
				s, ";");
		String className = objectString.nextToken();
		if (className.equals("geometry.Point")) {
			return Point.deserialize(s);
		}

		if (className.equals("geometry.Segment")) {
			return Segment.deserialize(s);
		}
		return null;
	}
}
